package com.demo1;

import javax.print.attribute.Size2DSyntax;

public class StudentTest {
    public static void main(String[] args) {
        Student.teacherName="阿伟老师";
        //1.创建第一个学生对象
        Student student1 = new Student();
        student1.setName("张三");
        student1.setAge(23);
        student1.setGender("男");
        //student1.teacherName="阿伟老师";
        student1.study();
        student1.show();
        //2.创建第二个学生对象
        Student student2 = new Student();
        student2.setName("李四");
        student2.setAge(24);
        student2.setGender("女");
        student2.study();
        student2.show();
    }
}
